package com.hebeiwangxiaozhang.admin.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Entity
@IdClass(CommodityCategoryBrandPK.class)
@Table(name = "commodity_category_brand")
public class CommodityCategoryBrand implements Serializable {

    @Id
    @Column(name = "category_id")
    private Long categoryId;

    @Id
    @Column(name = "brand_id")
    private Long brandId;

    @Column(name = "create_time")
    private Date createTime;

}
